﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ProdeManagmente.Forms.ABMS;

namespace ProdeManagmente.Forms
{
    public partial class FrmMain : Form
    {
        public FrmMain()
        {
            InitializeComponent();
        }

        private void ventanaToolStripMenuItem_Click(object sender, EventArgs e)
        {

        }

        private void cascadaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.LayoutMdi(MdiLayout.Cascade);
        }

        private void mosaicoHorizontalToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.LayoutMdi(MdiLayout.TileHorizontal);
        }

        private void mosaicoVerticalToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.LayoutMdi(MdiLayout.TileVertical);
        }

        private void organizarIconosToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.LayoutMdi(MdiLayout.ArrangeIcons);
        }

        private void torneosToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmListTournament frmListTournament = FrmListTournament.getFrmListTournamentInstance();
            frmListTournament.MdiParent = this;
            frmListTournament.Show();
        }

        private void equiosToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmListTeam frmListTeam = FrmListTeam.getFrmListTeamInstance();
            frmListTeam.MdiParent = this;
            frmListTeam.Show();
        }

        private void partidosToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmListMatch frmListMatch = FrmListMatch.getFrmListMatchInstance();
            frmListMatch.MdiParent = this;
            frmListMatch.Show();
        }

        private void FrmMain_FormClosed(object sender, FormClosedEventArgs e)
        {
            Application.Exit();
        }

        private void resultadosToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmUserResults frmUserResults = FrmUserResults.getFrmUserResultsInstance();
            frmUserResults.MdiParent = this;
            frmUserResults.Show();
        }
    }
}
